package com.kxmall.order.domain.vo;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;

@Data
@ApiModel("商品订单")
@ExcelIgnoreUnannotated
public class KxStoreOrderProductVo {

    private static final long serialVersionUID = 1L;
    /**
     * 商品订单ID
     */
    @ApiModelProperty(value = "商品订单ID")
    @ExcelProperty(value = "商品订单ID")
    private Long id;

    /**
     * 订单ID
     */
    @ApiModelProperty(value = "订单ID")
    @ExcelProperty(value = "订单ID")
    private Long orderId;

    /**
     * 订单号
     */
    @ApiModelProperty(value = "订单号")
    @ExcelProperty(value = "订单号")
    private String orderNo;

    /**
     * 产品ID
     */
    @ApiModelProperty(value = "产品ID")
    @ExcelProperty(value = "产品ID")
    private Long productId;

    /**
     * 产品名
     */
    @ApiModelProperty(value = "产品名")
    @ExcelProperty(value = "产品名")
    private String productTitle;

    /**
     * 产品规格ID
     */
    @ApiModelProperty(value = "产品规格ID")
    @ExcelProperty(value = "产品规格ID")
    private Long productAttrId;

    /**
     * 规格名
     */
    @ApiModelProperty(value = "规格名")
    @ExcelProperty(value = "规格名")
    private String productAttrTitle;

    /**
     * 条形码
     */
    //@ApiModelProperty(value = "条形码")
    //@ExcelProperty(value = "条形码")
    //private String barCode;

    /**
     * 数量
     */
    @ApiModelProperty(value = "数量")
    @ExcelProperty(value = "数量")
    private Integer num;

    /**
     * 原价
     */
    @ApiModelProperty(value = "原价")
    @ExcelProperty(value = "原价")
    private BigDecimal otPrice;

    /**
     * 价格
     */
    @ApiModelProperty(value = "价格")
    @ExcelProperty(value = "价格")
    private BigDecimal price;

    /**
     * 图片
     */
    @ApiModelProperty(value = "图片")
    @ExcelProperty(value = "图片")
    private String img;

    /**
     * 单位
     */
    @ApiModelProperty(value = "单位")
    @ExcelProperty(value = "单位")
    private String unitName;

}
